package package1;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TestForTimeConsumption {

	public static void main(String[] args) {
		Date d1 = new Date();
		System.err.println(d1.getTime());
		Date d2 = new Date();
		System.err.println(d2.getTime());
		SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String aa = s.format(d1);
		System.err.println(d1);
		int c1 = (int) System.currentTimeMillis();
		System.err.println(c1);
//		Thread.currentThread().sleep(5000);
		int c2 = (int) System.currentTimeMillis();
		System.err.println(c2);
		
		System.err.println((c2-c1)/1000);
	}

}
